From: Gianfranco Costamagna Date: Sat, 11 Jan 2020 10:14:46 +0000 (+0000) Subject: Link with -latomic when mips* processor is detected X-Git-Tag: archive/raspbian/1%7.0.1-10+rpi1^2~63 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2a3988803c4738205551e17c60f9e8d856c69cc1;p=llvm-toolchain-7.git Link with -latomic when mips* processor is detected Last-Update: 2016-07-27 Gbp-Pq: Topic lldb Gbp-Pq: Name lldb-link-atomic-cmake.patch --- diff --git a/lldb/source/Utility/CMakeLists.txt b/lldb/source/Utility/CMakeLists.txt index 91f3c8773..9d3cadaa2 100644 --- a/lldb/source/Utility/CMakeLists.txt +++ b/lldb/source/Utility/CMakeLists.txt @@ -30,6 +30,14 @@ endif() list(APPEND LLDB_SYSTEM_LIBS ${system_libs}) +if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mipsel" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64el" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "powerpcspe") + list(APPEND LLDB_SYSTEM_LIBS atomic) +endif() + + if (LLVM_BUILD_STATIC) if (NOT LLDB_DISABLE_PYTHON) list(APPEND LLDB_SYSTEM_LIBS python2.7 util)